#pragma once

#include <vgraph>
#include "EventArgs.h"

struct ScaleChangedEventArgs : public EventArgs 
{
public:
	ScaleChangedEventArgs(const Point& centerpoint,real scale){this->centerpoint = centerpoint; this->scale = scale;}

	const Point& GetCenterPoint() const {return centerpoint;}
	real GetScale() const {return scale;}

protected:
	Point centerpoint;
	real scale;
};

const double MAGNIFIER_SCALE_MIN = 0.5;
const double MAGNIFIER_SCALE_MAX = 5.0;
const double MAGNIFIER_AUTO_RATIO = 1.2;
const double MAGNIFIER_RANGE_MIN = 5.0;